package com.my.hzb.common.bean;

import java.io.Serializable;
import java.util.List;

public class ResultBean implements Serializable{
	private static final long serialVersionUID = -1L;
	private String respCode;
	private String respMsg;
	private List<Object> returnList;
	private Object returnObj;
	private String returnStr;
	private String cookie;

	public ResultBean(){}
	public ResultBean(String respCode,String respMsg){
		this.respCode = respCode;
		this.respMsg = respMsg;
	}
	
	public ResultBean(String isOk){
		if("ok".equals(isOk)){
			this.respCode = RETURN_SUCCESS_CODE;
			this.respMsg = RETURN_SUCCESS_MSG;
		}else{
			this.respCode = RETURN_SUCCESS_CODE;
			this.respMsg = RETURN_SUCCESS_MSG;
		}
	}
	public void setReturn(String respCode,String respMsg){
		this.respCode = respCode;
		this.respMsg = respMsg;
	}
	
	public static final String RETURN_SUCCESS_CODE = "0000";
	public static final  String RETURN_ERROR_CODE = "9000";
	public static final String RETURN_SUCCESS_MSG = "success";
	public static final  String RETURN_ERROR_MSG = "error";
	
	
	public String getReturnStr() {
		return returnStr;
	}
	public void setReturnStr(String returnStr) {
		this.returnStr = returnStr;
	}
	public String getCookie() {
		return cookie;
	}
	public void setCookie(String cookie) {
		this.cookie = cookie;
	}
	public String getRespCode() {
		return respCode;
	}
	public void setRespCode(String respCode) {
		this.respCode = respCode;
	}
	public String getRespMsg() {
		return respMsg;
	}
	public void setRespMsg(String respMsg) {
		this.respMsg = respMsg;
	}
	public Object getReturnObj() {
		return returnObj;
	}
	public void setReturnObj(Object returnObj) {
		this.returnObj = returnObj;
	}
	public List<Object> getReturnList() {
		return returnList;
	}
	public void setReturnList(List<Object> returnList) {
		this.returnList = returnList;
	}
}
